
#include "../Headers/day07_homework.h"
#include "template.cpp"
int main(int argc, char *argv[])
{
    float lhs, rhs;
    cout << "输入矩形长 宽" << endl;
    cin >> lhs >> rhs;

    rectangle rec_1(lhs, rhs);
    cout << lhs<<" - "<<rhs<< "矩形周长" << rec_1.perimeter() << endl;
    cout << lhs<<" - "<<rhs<< "矩形面积" << rec_1.area() << endl;
    triangle tri(3,4);
    cout<<"3,4直角三角形周长"<<tri.perimeter()<<endl;
     cout<<"3,4直角三角形面积"<<tri.area()<<endl;
    circle cir(10);

     cout<<"10 半径圆形周长"<<cir.perimeter()<<endl;
     cout<<"10 半径圆形周长"<<cir.area()<<endl;
    return 0;
}
